package com.example.shiyansan.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDTO {
    private Integer orderId;
    private String username;
    private Integer status;
    private LocalDateTime createTime;
    private Integer total_price;
    private List<OrderItem> orderItemList;

    @Data
    public static class OrderItem{
        private String bookName;
        private Integer quantity;
        private Integer price;
    }
}
